package com.chengzhi.structure;

/**
 * @description:
 * @author: ruanchengzhi
 * @create: 2020-08-20 11:12
 **/
public class DoubleLinkedListTest {
    public static void main(String[] args) {
        DoubleLinkedList<String> doubleLinkedList = new DoubleLinkedList<>();
        doubleLinkedList.add("1");
        doubleLinkedList.add("2");
        doubleLinkedList.add("3");
        doubleLinkedList.add("4");
        doubleLinkedList.add(3, "5");
        doubleLinkedList.print();
        System.out.println(doubleLinkedList.delete("4"));
        System.out.println(doubleLinkedList.contains("4"));
        System.out.println(doubleLinkedList.contains("3"));
        doubleLinkedList.print();
        System.out.println(doubleLinkedList);
    }
}
